<include file="Common:header" />
<div class="layui-layout layui-layout-admin">
	<div class="layui-header">
		<div class="layui-logo">TCMS ver 3.0.1</div>
		<ul class="layui-nav layui-layout-left">
			<li class="layui-nav-item" lay-unselect> <a href="javascript:;" title="侧边伸缩"> <i class="layui-icon layui-icon-shrink-right" id="displayICO"></i> </a> </li>
			<li class="layui-nav-item" lay-unselect> <a href="/" target="_blank" title="打开主页"><i class="layui-icon layui-icon-home"></i> 主页</a> </li>
			<li class="layui-nav-item" lay-unselect> <a href="javascript:;" target="_blank" title="联系电话:18144280312"> <i class="layui-icon layui-icon-cellphone"></i> </a> </li>
			<li class="layui-nav-item" lay-unselect> <a href="javascript:;" target="_blank" title="QQ:190296465"> <i class="layui-icon layui-icon-login-qq"></i> </a> </li>
			<li class="layui-nav-item" lay-unselect> <a href="javascript:;" target="_blank" title="微信:18144280312"> <i class="layui-icon layui-icon-login-wechat"></i> </a> </li>
			<!--li class="layui-nav-item layui-hide-xs"><input type="text" placeholder="搜索..." autocomplete="off" class="layui-input layui-input-search" layadmin-event="serach" lay-action="template/search.html?keywords="></li-->
		</ul>
		<!--ul class="layui-nav layui-layout-left" lay-filter="topMenu">
			<li class="layui-nav-item"><a data-menu="0" href="javascript:;">主菜单</a></li>
			<li class="layui-nav-item"><a data-menu="1" href="javascript:;">测试菜单</a></li>
		</ul-->
		<ul class="layui-nav layui-layout-right">
			<li class="layui-nav-item" lay-unselect><a href="{:U('Login/loginOut')}" title="退出登陆"> <i class="layui-icon layui-icon-log"></i> 退出 </a></li>
		</ul>
	</div>
</div>
<div class="layui-side layui-bg-black">
	<div class="layui-side-scroll">
		<ul class="layui-nav layui-nav-tree" lay-shrink="all" lay-filter="test">
			<foreach name="MenuList" item="val" key="key">
				<li class="layui-nav-item"> <a href="javascript:;"><i class="layui-icon">{$val['lm_ico']?$val['lm_ico']:'&#xe621;'}</i>　{$val['lm_name']}</a>
					<dl class="layui-nav-child">
						<foreach name="val['son']" item="v">
							<dd><a href="{:U($v['action'].'/'.$v['function'],array('menu_id'=>$v['id'],'lm_id'=>$v['lm_id']))}" target="main">{$v['menu_name']}</a></dd>
							<equal name="v['manage']" value="1">
								<dd><a href="{:U($v['action'].'/index',array('menu_id'=>$v['id'],'lm_id'=>$v['lm_id']))}" target="main">管理列表</a></dd>
							</equal>
							{:strpos($v['allow_field'],'category')?'
							<dd><a href="' . U('Category/index',array('menu_id'=>$v['id'],'lm_id'=>$v['lm_id'])) . '" target="main">分类管理</a></dd>
							':''}
							<equal name="v['seo']" value="1">
								<dd><a href="{:U('Seo/index',array('menu_id'=>$v['id'],'lm_id'=>$v['lm_id']))}" target="main">SEO管理</a></dd>
							</equal>
						</foreach>
					</dl>
				</li>
			</foreach>
		</ul>
	</div>
</div>
<div class="layui-body">
	<iframe src="{:U('Index/welcome')}" name="main" frameborder="0"></iframe>
</div>
<script>
layui.use(['element','functions'], function(){
	var functions = layui.functions
	,element = layui.element;
	functions.menuActive();
});
</script>
<include file="Common:footer" />